home *** CD-ROM | disk | FTP | other *** search
/ PC/CD Gamer UK 123 / CD Gamer Issue 123 (June 2003) (Disc 1).ISO / Games / Dev_Demo_EU / data1.cab / App_Executables / OpenAL / Inc / alc.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-02-28  |  3.1 KB  |  91 lines

  1. #ifndef _ALC_H_
  2. #define _ALC_H_
  3.  
  4. #include "altypes.h"
  5. #include "alctypes.h"
  6.  
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10.  
  11. #ifdef _WIN32
  12.  #ifdef _OPENAL32LIB
  13.   #define ALCAPI __declspec(dllexport)
  14.  #else
  15.   #define ALCAPI __declspec(dllimport)
  16.  #endif
  17.  
  18.  typedef struct ALCdevice_struct ALCdevice;
  19.  typedef struct ALCcontext_struct ALCcontext;
  20.  
  21.  #define ALCAPIENTRY __cdecl
  22. #else
  23.  #ifdef TARGET_OS_MAC
  24.   #if TARGET_OS_MAC
  25.    #pragma export on
  26.   #endif
  27.  #endif
  28.  #define ALCAPI
  29.  #define ALCAPIENTRY __cdecl
  30. #endif
  31.  
  32.  
  33.  
  34. #ifndef ALC_NO_PROTOTYPES
  35.  
  36. ALCAPI ALCubyte*  ALCAPIENTRY alcGetString(ALCdevice *device,ALCenum param);
  37. ALCAPI ALCvoid    ALCAPIENTRY alcGetIntegerv(ALCdevice *device,ALCenum param,ALCsizei size,ALCint *data);
  38.  
  39. ALCAPI ALCdevice* ALCAPIENTRY alcOpenDevice(ALCubyte *deviceName);
  40. ALCAPI ALCvoid    ALCAPIENTRY alcCloseDevice(ALCdevice *device);
  41.  
  42. ALCAPI ALCcontext*ALCAPIENTRY alcCreateContext(ALCdevice *device,ALCint *attrList);
  43. ALCAPI ALCboolean ALCAPIENTRY alcMakeContextCurrent(ALCcontext *context);
  44. ALCAPI ALCvoid      ALCAPIENTRY alcProcessContext(ALCcontext *context);
  45. ALCAPI ALCcontext*ALCAPIENTRY alcGetCurrentContext(ALCvoid);
  46. ALCAPI ALCdevice* ALCAPIENTRY alcGetContextsDevice(ALCcontext *context);
  47. ALCAPI ALCvoid      ALCAPIENTRY alcSuspendContext(ALCcontext *context);
  48. ALCAPI ALCvoid    ALCAPIENTRY alcDestroyContext(ALCcontext *context);
  49.  
  50. ALCAPI ALCenum      ALCAPIENTRY alcGetError(ALCdevice *device);
  51.  
  52. ALCAPI ALCboolean ALCAPIENTRY alcIsExtensionPresent(ALCdevice *device,ALCubyte *extName);
  53. ALCAPI ALCvoid *  ALCAPIENTRY alcGetProcAddress(ALCdevice *device,ALCubyte *funcName);
  54. ALCAPI ALCenum      ALCAPIENTRY alcGetEnumValue(ALCdevice *device,ALCubyte *enumName);
  55.                 
  56. #else /* AL_NO_PROTOTYPES */
  57.  
  58. ALCAPI ALCubyte*  ALCAPIENTRY (*alcGetString)(ALCdevice *device,ALCenum param);
  59. ALCAPI ALCvoid    ALCAPIENTRY (*alcGetIntegerv)(ALCdevice * device,ALCenum param,ALCsizei size,ALCint *data);
  60.  
  61. ALCAPI ALCdevice* ALCAPIENTRY (*alcOpenDevice)(ALubyte *deviceName);
  62. ALCAPI ALCvoid    ALCAPIENTRY (*alcCloseDevice)(ALCdevice *device);
  63.  
  64. ALCAPI ALCcontext*ALCAPIENTRY (*alcCreateContext)(ALCdevice *device,ALCint *attrList);
  65. ALCAPI ALCboolean ALCAPIENTRY (*alcMakeContextCurrent)(ALCcontext *context);
  66. ALCAPI ALCvoid      ALCAPIENTRY (*alcProcessContext)(ALCcontext *context);
  67. ALCAPI ALCcontext*ALCAPIENTRY (*alcGetCurrentContext)(ALCvoid);
  68. ALCAPI ALCdevice* ALCAPIENTRY (*alcGetContextsDevice)(ALCcontext *context);
  69. ALCAPI ALCvoid      ALCAPIENTRY (*alcSuspendContext)(ALCcontext *context);
  70. ALCAPI ALCvoid    ALCAPIENTRY (*alcDestroyContext)(ALCcontext *context);
  71.  
  72. ALCAPI ALCenum      ALCAPIENTRY (*alcGetError)(ALCdevice *device);
  73.  
  74. ALCAPI ALCboolean ALCAPIENTRY (*alcIsExtensionPresent)(ALCdevice *device,ALCubyte *extName);
  75. ALCAPI ALCvoid *  ALCAPIENTRY (*alcGetProcAddress)(ALCdevice *device,ALCubyte *funcName);
  76. ALCAPI ALCenum      ALCAPIENTRY (*alcGetEnumValue)(ALCdevice *device,ALCubyte *enumName);
  77.  
  78. #endif /* AL_NO_PROTOTYPES */
  79.  
  80. #ifdef TARGET_OS_MAC
  81.  #if TARGET_OS_MAC
  82.   #pragma export off
  83.  #endif
  84. #endif
  85.  
  86. #ifdef __cplusplus
  87. }
  88. #endif
  89.  
  90. #endif
  91.